<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ChartViewer.setFullRange</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="ChartViewer.htm">ChartViewer</a>.<wbr>setFullRange</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setFullRange(String id, {double | java.util.Date} minValue, {double | java.util.Date} maxValue)
</div>
<p class="heading2">Description</p>
<div class="content">
Defines the full range of a viewport data scale.<br><br>
In the ChartDirector zooming and scrolling framework, the viewport coordinates are expressed as the visible fractions of the "full data scale". For example, if the "full data scale" is 10 years horizontally, a viewport width of 0.1 means that 1 year of data are visible.<br><br>
The setFullRange method defines the full range of a data scale and gives it a name. As ChartDirector supports multiple x-axes and y-axes, so there can be multiple data scales with different names. The name can be used in other ChartDirector APIs to convert between the viewport coordinates and data scale (see <a href="ChartViewer.getValueAtViewPort.htm">ChartViewer.getValueAtViewPort</a>, <a href="ChartViewer.getViewPortAtValue.htm">ChartViewer.getViewPortAtValue</a>), and to configure an <a href="Axis.htm">Axis</a> to reflect the visible data scale (see <a href="ChartViewer.syncLinearAxisWithViewPort.htm">ChartViewer.syncLinearAxisWithViewPort</a>, <a href="ChartViewer.syncLogAxisWithViewPort.htm">ChartViewer.syncLogAxisWithViewPort</a> and <a href="ChartViewer.syncDateAxisWithViewPort.htm">ChartViewer.syncDateAxisWithViewPort</a>).
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>id</td><td>(Mandatory)</td><td>The name of the data scale.</td></tr><tr><td>minValue</td><td>(Mandatory)</td><td>The minimum value of the data scale.</td></tr><tr><td>maxValue</td><td>(Mandatory)</td><td>The maximum value of the data scale.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
